/**
 * 招采管理模块 http 请求
 */
import http from '@/utils/request'

export const gainBillNo = (data) => {
  return http.get('/api/erp/purchase/recipients/erpPurchaseCannibalize/gainBillNo', data)
}

export const add = (data) => {
  return http.post('/api/erp/purchase/recipients/erpPurchaseCannibalize/add', data)
}
export const edit = (data) => {
  return http.put('/api/erp/purchase/recipients/erpPurchaseCannibalize/edit', data)
}

export const info = (data) => {
  return http.get('/api/erp/purchase/recipients/erpPurchaseCannibalize/queryById', data)
}

export const queryByDepartment = (data) => {
  return http.get('/api/erp/purchase/storehouse/erpStorehouseBase/queryByDepartment', data)
}

export const queryProvisionBroadList = (data) => {
  return http.get('/api/erp/purchase/material/erpMaterialCategory/queryAllParent')
}

export const queryProvisionSmallList = (data) => {
  return http.get('/api/erp/purchase/material/erpMaterialCategory/queryChildrenByParentId', data)
}
